


    import * as React from 'react';
    import * as ReactDOM from 'react-dom';


    var sub = React.createClass({
        getDefaultProps: function () {
            return {
                show: false,
                param: {}
            };
        },
        getInitialState: function () {
            return {value: ''};
        },
        handleChange: function (event) {
            this.props.handleSubmit();
        },
        render: function () {
            var title = this.props.title?this.props.title:"提交"
            return (
                <div className="virtual-input" onClick={this.handleChange}>
                    <button className="btn  btn-success">{title}</button>
                </div>
            )
        }
    })


    module.exports =  {
        SUB: sub
    }






